import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

const store = new Vuex.Store({
	plugins: [],
	state: {
		stock: {
			stockName: "",
			stockCode: "",
		},
		isQuarter: ''
	},
	getters: {
		getStock(state) {
			return state.stock;
		}
	},
	mutations: {
		setStock(state, data) {
			state.stock = data;
		},
		setisQuarter(state, status) {
			state.isQuarter = status;
		}
	},
	actions: {},
});

export default store;
